.page {
  display: flex;
  flex: 1 1 auto;
  height: 0;
  overflow: hidden;
  background: #192c53;
  border-radius: 20px;
}

.sl {
  position: absolute;
  top: 50%;
  right: 446px;
  z-index: 33;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 73px;
  background-color: #192c53;
  border-radius: 4px 0 0 4px;
  transform: translateY(-50%);
  cursor: pointer;

  &.collapsed {
    right: 0;

    .icon {
      transform: rotate(-180deg);
    }
  }

  .icon {
    width: 17px;
    height: 35px;
    background: url('~@/assets/pc/images/video/icon-sl.png') no-repeat center / 100%;
  }
}

.leftVideoWrapper {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  padding: 14px 20px 30px 20px;
  background-color: #0f2042;

  .back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 36px;
    margin-bottom: 12px;
    color: #fff;
    background: #293e6b;
    border-radius: 6px;
    cursor: pointer;
    &:hover {
      background: #3e517a;
    }

    .icon {
      width: 14px;
      height: 14px;
      margin-right: 4px;
      background: url('~@/assets/pc/images/video/icon-back.png') no-repeat center / 100%;
    }
  }

  .player {
    flex: 1;
    width: 100%;
    height: 0;
  }
  .playerNoVideo {
    display: flex;
    align-items: center;
    justify-content: center;
    > a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 200px;
      height: 70px;
      color: #fff;
      font-size: 16px;
      background-color: #254df8;
      border-radius: 8px;
      &:hover {
        background-color: #1e44e7;
      }
    }
  }
  .video {
    flex: 1;
    width: 100%;
  }

  .footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;

    .teacher {
      display: flex;
      align-items: center;
      padding-left: 20px;

      .avatar {
        width: 30px;
        height: 30px;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 50%;
        cursor: pointer;
      }

      .name {
        margin: 0 40px 0 8px;
        color: #fff;
        cursor: pointer;
        &:hover {
          color: #4de7ff;
        }
      }

      .tag {
        height: 32px;
        padding: 0 12px;
        color: #2d502e;
        line-height: 32px;
        background: #87b089;
        border-radius: 18px;
      }
    }

    .mynum {
      color: #7688a5;

      .text {
        margin-left: 5px;
        color: #fff;
        font-weight: 600;
        font-size: 18px;
      }
    }
  }
}

.menuWrapper {
  position: relative;
  width: 446px;
  padding: 20px;
  overflow-y: auto;
  background-color: #192c53;

  &.collapsed {
    width: 0;
    padding: 0;
  }

  .mulu {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
    padding: 6px 0;
    color: #fff;
    font-size: 20px;
  }

  // 课程目录
  .catalogue {
  }

  .collapsibleItem {
    margin-bottom: 4px;

    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 50px;
      padding: 0 15px;
      color: #fff;
      background: #2f5083;
      border-radius: 6px;
      cursor: pointer;
      &:hover {
        background: #44618f;
      }
      .left {
        display: flex;
        align-items: center;
        .zj {
          margin-right: 15px;
        }
      }

      .arrow {
        width: 44px;
        height: 44px;
        background: url('~@/assets/pc/images/course/icon-arrow-top-2.png') no-repeat center / 18px
          18px;
        cursor: pointer;
        transition: all 0.3s;
      }
    }

    &.collapsed {
      .body {
        height: 0;
        overflow: hidden;
      }

      .arrow {
        transform: rotate(180deg);
      }
    }

    .body {
      height: auto;
      transition: all 0.3s;
    }

    .item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: calc(100% - 28px);
      min-height: 60px;
      margin-left: 14px;
      padding: 10px 0;
      color: #fff;
      background: #192c53;
      border-bottom: 1px #314367 solid;
      cursor: pointer;

      &:last-child {
        border-bottom: none;
      }

      // 正式课
      &.type2 {
        .right {
          .gmbutton {
            display: none;
          }
        }

        &:hover {
          .right {
            .gmbutton {
              display: flex;
            }

            .time {
              display: none;
            }
          }
        }

        &.isPay {
          &:hover {
            .right {
              .time {
                display: block;
              }
            }
          }
        }
      }

      // 选中
      &.isActived {
        .left {
          .play {
            background: url('~@/assets/pc/images/video/icon-play-actived.png') no-repeat center /
              100%;
          }
          .title {
            color: #fee500;
          }
        }
      }

      &:hover {
        background: #1e325a;
      }

      .left {
        display: flex;
        flex: 1;
        align-items: center;

        .index {
          margin-right: 22px;
        }

        .play {
          width: 28px;
          height: 22px;
          margin-right: 12px;
          background: url('~@/assets/pc/images/course/icon-play-small-2.png') no-repeat center /
            100% 100%;
          cursor: pointer;
        }
        .title {
          flex: 1;
          width: 0;
          margin-right: 5px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
      }

      .right {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        .time {
          color: #7688a5;
        }
        .playing {
          color: #fee500;
        }

        .sxbutton {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 68px;
          height: 30px;
          color: #fff;
          background: rgba(255, 89, 103, 0.3);
          border: 1px solid #ff5967;
          border-radius: 7px;
          cursor: pointer;
          &:hover {
            background: rgba(255, 89, 103, 0.5);
          }
        }

        .gmbutton {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 80px;
          height: 30px;
          margin-left: 5px;
          color: #fff;
          background: #254df8;
          border-radius: 7px;
          cursor: pointer;
        }

        .lock {
          width: 24px;
          height: 24px;
          background: url('~@/assets/pc/images/course/icon-lock.png') no-repeat center / 100% 100%;
        }
      }
    }

    .extra {
      width: calc(100% - 46px - 14px);
      margin-left: 46px;
      .lockWrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: -5px;
        .title {
          flex: none;
          width: auto;
          color: #7688a5;
        }
        .workType {
          display: flex;
          align-items: center;
          margin-right: 10px;
          margin-bottom: 5px;
          padding: 7px 10px;
          color: #fff;
          background: rgba(255, 255, 255, 0.1);
          border-radius: 8px;
          &:last-child {
            margin-right: 0;
          }
          &:hover {
            background: rgba(255, 255, 255, 0.2);
          }
          .name {
            margin-right: 5px;
          }
          .current {
            color: #29ba91;
          }
        }
      }
      .leftWrapper {
        display: flex;
        flex: 1;
        align-items: center;
        .iconEdit {
          width: 28px;
          min-width: 28px;
          height: 22px;
          margin-right: 14px;
          background: url('~@/assets/pc/images/video/icon-edit.png') no-repeat center / 100% 100%;
        }
        .work {
          display: flex;
          align-items: center;
          font-size: 13px;
          .rewardtext {
            display: flex;
            flex: 1;
            align-items: center;
            .left {
              display: block;
              flex: 1;
              width: 0;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
            .line {
              width: 1px;
              height: 6px;
              margin: 0 7px;
              background-color: rgba(255, 255, 255, 0.2);
            }
            .see {
              color: rgba(77, 102, 255, 1);
            }
          }
          &.done {
            color: #29ba91;
            cursor: pointer;
          }
          .iconGou {
            width: 13px;
            height: 13px;
            margin-left: 3px;
            background: url('~@/assets/pc/images/video/icon-gou.png') no-repeat center / 100% 100%;
          }
        }
        .requirement {
          display: flex;
          align-items: center;
          color: #4d66ff;
          font-size: 12px;
          cursor: pointer;
          .icon {
            width: 17px;
            height: 17px;
            background: url('~@/assets/pc/images/video/icon-arrow-go.png') no-repeat center / 100%
              100%;
          }
        }
      }
      .right {
        .button {
          padding: 7px 11px;
          color: #fff;
          font-size: 12px;
          background: rgba(255, 255, 255, 0.1);
          border: 1px solid rgba(255, 255, 255, 0.5);
          border-radius: 8px;
          cursor: pointer;
          &:hover {
            background: rgba(255, 255, 255, 0.3);
          }
        }
      }
    }
  }
}

// 个人详情
.workRequirement {
  .main {
    color: #fff;
    white-space: pre;
  }
  :global {
    .ant-popover-title {
      display: none;
    }

    .ant-popover-inner {
      width: 364px;
      padding: 16px;
      background: #2f5083;
      border: 1px solid #657ba9;
      border-radius: 8px;
      box-shadow: 0 10px 35px 0 rgba(12, 29, 64, 0.53);
    }

    .ant-popover-inner-content {
      padding: 0;
    }

    .ant-popover-arrow-content {
      background-color: #657ba9;
    }
  }
}

:global {
  .pv-cover {
    background-size: cover !important;
  }
}

.sharepopover {
  :global {
    .ant-popover-title {
      display: none;
    }

    .ant-popover-inner {
      padding: 16px;
      background: #1c3a6a;
      border: 1px solid #355088;
      border-radius: 8px;
      box-shadow: 0 10px 35px 0 rgba(12, 29, 64, 0.53);
    }

    .ant-popover-inner-content {
      padding: 0;
    }

    .ant-popover-arrow-content {
      background-color: #657ba9;
    }
  }
}
.wxsharemain {
  .title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    color: #fff;
    img {
      margin-right: 6px;
    }
  }
}
.iframe {
  position: absolute;
  top: -9999px;
  left: -999999px;
  width: 0;
  height: 0;
}
.invoicePopup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 100%;
  .invoiceMask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.8;
  }
  .invoice {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 390px;
    height: 348px;
    background: #ffffff;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    .invoiceHeader {
      width: 390px;
      height: 160px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .invoiceBody {
      padding: 20px 30px;
      color: #000000;
      font-weight: 400;
      font-size: 16px;
    }
    .invoiceFooter {
      display: flex;
      justify-content: space-between;
      padding: 0 30px 30px 30px;
      a {
        width: 160px;
        height: 44px;
        color: #000000;
        font-weight: 400;
        font-size: 14px;
        line-height: 44px;
        text-align: center;
        background: #f2f2f2;
        border: 1px solid #f2f2f2;
        border-radius: 12px;
        &:hover {
          color: #254df8;
          background: rgba(37, 77, 248, 0.1);
          border: 1px solid rgba(37, 77, 248, 0.2);
        }
      }
      .one {
        color: #fff;
        background: #254df8;
        border: 1px solid #254df8;
        &:hover {
          color: #fff;
          background: #1e3ec6;
          border: 1px solid #1e3ec6;
        }
      }
    }
  }
}
